home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / RE>Hiliting and system hilite c < prev    next >
Encoding:
Internet Message Format  |  1996-07-10  |  882 b   |  [TEXT/ttxt]

  1. Subject:     RE>Hiliting and system hilite colour in ODF?
  2. Sent:        7/10/96 7:19 AM
  3. Received:    7/10/96 8:46 AM
  4. From:        Rob Cope, rob@eclipse.cpcn.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.  
  9.                                                                  Date: 7/10/96
  10. Subject:  RE>Hiliting and system hilite colour in ODF?          Time:  9:18 AM
  11. I haven't found a way to do it in ODF either.  In fact, I can't even find how to do it without poking around in the GrafPort.  Here is what I do, which works, but I would love to have a better way.
  12.  
  13.     #if defined(FW_BUILD_MAC)
  14.         GrafPtr    curPort;
  15.         ::GetPort(&curPort);
  16.         FW_CColor hColor (((GrafVars*)*((CGrafPort*)curPort)->grafVars)->rgbHiliteColor);
  17.     #else
  18.         FW_Color hColor = FW_kRGBBlack;
  19.     #endif
  20.  
  21. Rob Cope
  22. Eclipse Services
  23.  
  24.  
  25.